package UseString.demo01;

public class TestSubString {
    public static void main(String[] args) {
        String telephone = "18860476292";
        String start = telephone.substring(0,3);
        String end = telephone.substring(7);
        String result = start + "****" + end;
        System.out.println(result);
        System.out.println(telephone.substring(0,3)+ "****" +telephone.substring(7));
    }
}
